//
//  Player.m
//  fugitive
//
//  Created by Eugene Bistolas on 5/27/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "Player.h"


@implementation Player
@synthesize playerID; 
@synthesize playerName = playerName_; 
@synthesize playerType; 
@synthesize coordinate; 
@synthesize alertStatus; 

- (id) initWithPlayerID:(int)pid name:(NSString*)n type:(int)t coordinate:(CLLocationCoordinate2D) coord {
    self = [super init];
    if (self) {
        self.playerID = pid;
        playerName_ = [[NSString alloc] init]; 
        self.playerName = n;
        self.playerType = t; 
        self.coordinate = coord; 
        self.alertStatus = 0; 
    }
    return self; 
}

+ (int) generatePlayerID {
    return (arc4random() % 500); 
}



- (void) dealloc {
    [playerName_ release]; 
    [super dealloc]; 
    
}

@end
